import { defineConfig } from 'vite';
import { resolve } from 'path';
import html from 'rollup-plugin-html';
import replace from 'rollup-plugin-replace';

export default defineConfig({
    plugins: [
        html({
            template: resolve(__dirname, 'src/index.html'),
        }),
        replace({
            'process.env.NODE_ENV': JSON.stringify('production'),
        }),
    ],
});
// export default defineConfig({
//     build: {
//         rollupOptions: {
//             input: {
//                 demo0: resolve(__dirname, 'src/pages/demo0.html'),
//                 demo1: resolve(__dirname, 'src/pages/demo1.html'),
//                 demo7: resolve(__dirname, 'src/pages/demo7.html'),
//                 demo8: resolve(__dirname, 'src/pages/demo8.html'),
//             },
//         },
//     },
// });